package com.springboot.admin.service;

import com.springboot.admin.entity.AccountDto;
import com.springboot.admin.entity.SiteInfoDto;
import java.util.List;
import java.util.Map;

public interface AccountService {

  public AccountDto login(AccountDto accountDto ) throws Exception;

  public void updateUserInfo(AccountDto accountDto);

  public String getRoleList(String username);

  public List<Map> getUserList(int page);

  public List<Map> getRoleList();

  public void insertRole(String username,String roleId);

  public void deleteRolesByUsername(String username);

  public void insertUser(String username,String password, String email);

  public void deleUser(int id, String username);

  public Map getSiteInfo();

  public void updateSiteInfo(SiteInfoDto siteInfoDto);

  public void insertLoginLog(String username);

  public void register(Map map);

  public AccountDto getUserInfo();
}